import React from 'react';
import styles from './index.less';
import { NavLink } from 'umi';
import { NAV_CONFIG } from '@/constant/route.const';
export default function Page() {
  const a = 100;
  const Navs = NAV_CONFIG.map((item) => {
    return (
      <div key={item.title + item.path}>
        <NavLink to={item.path}>{item.title}</NavLink>
      </div>
    );
  });
  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      {Navs}
    </div>
  );
}
